#include "render_control.h"

using namespace krryn::gui;

render_control_impl_manager &render_control_impl_manager::instance(){
	static render_control_impl_manager m;
	return m;
}

render_control::render_control(const with &a_Initializer)
	: widget(render_control_impl_manager::instance().create_render_control_impl(a_Initializer.m_Api)){
	m_Pimpl = get_impl<impl>();
	m_Pimpl->make(a_Initializer);
	m_Pimpl->post_make(*this, a_Initializer.get_parent());
}